package com.csw.mysqldate.controller;

import lombok.extern.slf4j.Slf4j;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

@Slf4j
public class BufferReaderFileReader {

	public static void main(String[] args) throws IOException {
		String path = "E:\\IdeaProjects\\202107Codeing\\mysql-date\\src\\main\\resources\\file";
		try (BufferedReader br = new BufferedReader(new FileReader(path))) {
			String line;
			while ((line = br.readLine()) != null) {
				log.info("{}", line);
			}
		}

	}

}
